package com.wish.g04.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import com.wish.g04.common.security.annotation.EnableRyFeignClients;

import javax.annotation.PostConstruct;

/**
 * 认证授权中心
 * 
 * @author sangougou
 */
@EnableRyFeignClients
@SpringCloudApplication
public class WishAuthApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(WishAuthApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  认证授权中心启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " ____      ____  _          __       \n" +
                "|_  _|    |_  _|(_)        [  |      \n" +
                "  \\ \\  /\\  / /  __   .--.   | |--.   \n" +
                "   \\ \\/  \\/ /  [  | ( (`\\]  | .-. |  \n" +
                "    \\  /\\  /    | |  `'.'.  | | | |  \n" +
                "     \\/  \\/    [___][\\__) )[___]|__] \n");
    }

    @PostConstruct
    public void init(){
        // 处理 discard long time none received connection
        System.setProperty("druid.mysql.usePingMethod", "false");
    }
}
